package com.wss.llm.configuration;

import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;


/**
 * @author:wss
 * @CreatDate:2025/3/25 10:26
 * @Description：获取配置中的连接参数
 */
@Configuration
@PropertySource("classpath:llm.properties")
public class ReqParam {
    private final Environment env;

    public ReqParam(Environment env) {
        this.env = env;
    }

    public  String getApiKey() {
        return env.getProperty("api.key");
    }

    public String getApiUrl() {
        return env.getProperty("base.url");
    }
    public String getApiModel() {
        return env.getProperty("api.model");
    }
}
